package org.example.aop;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AOPTest {
    @Test
    public void aop(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-aop.xml");
        Target target = context.getBean(Target.class);
        target.selectAll();
        target.selectById(4);
        target.add(4,6);
        context.close();
    }
}
